﻿<Window x:Class="RL.wRLCash"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Информация о сданной наличности" Closing="Window_Closing" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:my="clr-namespace:RL" Loaded="Window_Loaded" d:DesignHeight="339" d:DesignWidth="523" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <CollectionViewSource x:Key="routeListInfoViewSource" d:DesignSource="{d:DesignInstance my:RouteListInfo, CreateList=True}" />
    </Window.Resources>
    <Grid DataContext="{StaticResource routeListInfoViewSource}">
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Name="stackPanel1" Orientation="Horizontal">
            <DatePicker Height="25" Name="datePicker1" Width="115" SelectedDateChanged="datePicker1_SelectedDateChanged" />
            <Button Content="Сохранить" Height="23" Name="buttonSave" Width="75" Click="buttonSave_Click"/>
        </StackPanel>
        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Grid.Row="1" ItemsSource="{Binding}" Name="routeListInfoDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" CanUserAddRows="False" CanUserDeleteRows="False">
            <DataGrid.Columns>
                <DataGridTextColumn x:Name="name_rlColumn" Binding="{Binding Path=RouteList.nomdog}" Header="№ Пут. лист." Width="100" />
                <DataGridTextColumn x:Name="date_rlColumn" Binding="{Binding Path=RouteList.dt_datedoc,StringFormat='dd/MM/yyyy'}" Header="Дата Пут. лист." Width="100" />
                <DataGridTextColumn x:Name="id_routeColumn" Binding="{Binding Path=Routes.number}" Header="№ маршрута." Width="SizeToHeader" />
                <DataGridTextColumn x:Name="id_routeNameColumn" Binding="{Binding Path=Routes.name}" Header="Наим. маршр." Width="SizeToHeader" />
                <DataGridTextColumn x:Name="price_factColumn" Binding="{Binding Path=price_fact}" Header="Наличность" Width="SizeToHeader" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
